﻿using DomainModel;
using FluentNHibernate.Mapping;

namespace Repository.NHibernate.Mapping
{
    public class StudySemesterMap : ClassMap<StudySemester>
    {
        public StudySemesterMap()
        {
            Id(x => x.Id);

            Map(x => x.BeginDate);
            Map(x => x.EndDate);

            References(x => x.StudyYear);

            HasMany(x => x.TimetableUnits);
        }
    }
}